// 引入接口函数
import {getSubjectData} from '/src/api'
const actions = {
    // 获取专题页面数据
    async getSubject({
        commit
    }, data) {
        let result = await getSubjectData(data)
            commit('GETSUBJECT', result.data)
    }
}
const mutations = {
    GETSUBJECT(state, subjectData) {
        state.subjectData = subjectData
    }
}
const state = {
    subjectData: {}
}
const getters = {

}
export default {
    actions,
    mutations,
    state,
    getters
}